<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
    <!-- Latest compiled and minified CSS & JS -->
    <link rel="stylesheet" media="screen" href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css">
    <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script>
    <title>Document</title>
</head>
<body>
<div class="container" style="margin-top:100px;">
    <div class="jumbotron">
        <div class="container">
            <h1>:)<?php echo $msg; ?></h1>
            <p><span id="time">3</span>秒后自动跳转</p>
            <p>
                <a href="<?php echo $this->url; ?>">点击跳转</a>
            </p>
        </div>
    </div>
</div>
    <script>
        $(function(){
            var time=$('#time').html();
            setInterval(function(){
                time--;
                $('#time').html(time);
                if(time==0){
                    window.location.href="<?php echo $this->url; ?>";
                }
            },1000);


        })
    </script>
</body>
</html>